package study.designpattern.command;

import java.util.ArrayList;
import java.util.List;

public class Invoker {
    private List commands = new ArrayList();
    
    public void storeAndExecute(Command command){
        commands.add(command);
        command.execute();
    }
}
